package com.zz.parkingsystem.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 支付类型表
 * @TableName t_paid_type
 */
@Data
public class PaidType implements Serializable {
    /**
     * 支付类型ID
     */
    private Integer ptId;

    /**
     * 0：微信  1：支付宝
     */
    private Integer ptType;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PaidType other = (PaidType) that;
        return (this.getPtId() == null ? other.getPtId() == null : this.getPtId().equals(other.getPtId()))
            && (this.getPtType() == null ? other.getPtType() == null : this.getPtType().equals(other.getPtType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPtId() == null) ? 0 : getPtId().hashCode());
        result = prime * result + ((getPtType() == null) ? 0 : getPtType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ptId=").append(ptId);
        sb.append(", ptType=").append(ptType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}